<?php if($category->num_rows() > 0){ ?>

<table>
	<thead>
		<tr>
			<td>category name</td>
			<td>meta keywords</td>
			<td>meta title</td>
			<td>meta description</td>
			<td></td>
		</tr>
	</thead>
	<tbody>
		<?php 
		$oddEven = 'odd';
		foreach($category->result() as $rows){
			
			echo '<tr class="'. $oddEven .'">';
				echo '<td>' . $rows->category_name . '</td>';
				echo '<td>' . $rows->meta_keywords . '</td>';
				echo '<td>' . $rows->meta_title . '</td>';
				echo '<td>' . $rows->meta_desc . '</td>';
				echo '<td> <a href="' . $this->config->config['base_url'] . '/admin/category/edit/'.$rows->category_id.'.htm">Edit</a></td>';
			echo '</tr>';
			$oddEven = $oddEven == 'odd' ? 'even' : 'odd';
		} ?>
	</tbody>
</table>

<?php } ?>